﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using ScrumTime.Models;

namespace ScrumTime.Helpers
{
    public class UsabilityFeatures
    {
        static UsabilityFeatures _Instance;
        List<UsabilityFeature> _UsabilityFeatures;

        ScrumTimeEntities _ScrumTimeEntities;

        private UsabilityFeatures()
        {
            _ScrumTimeEntities = new ScrumTimeEntities();

            _UsabilityFeatures = ScrumTime.Services.UsabilityFeatureService.GetAllUsabilityFeatures(_ScrumTimeEntities); 
        }

        public static List<UsabilityFeature> All()
        {
            if (_Instance == null)
                _Instance = new UsabilityFeatures();
            return _Instance._UsabilityFeatures;
        }

    }
}